﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace VkControlSyles
{
	public partial class MainPage : UserControl
	{
		DispatcherTimer _tm = new DispatcherTimer();
		
		public MainPage()
		{
			// Required to initialize variables
			InitializeComponent();
			
			_tm.Interval = new TimeSpan(0,0,0, 1);
			_tm.Tick += onTick;
			_tm.Start();
		}
		
		private void onTick(object sender, EventArgs e)
		{
			try
			{
				li1.Content = string.Format("IS: {0}, IF: {1}", li1.IsSelected, "none");

				//li1.
			}
			catch (Exception exception)
			{
				MessageBox.Show(exception.ToString());
			}
		}
	}
}